how to pass data between functional components from parent to child